home *** CD-ROM | disk | FTP | other *** search
/ PC Zone 92 / DPPCZ0800.7z / DPPCZ0800.ISO / Patches / The Sims / patch1.exe / script.txt < prev    next >
Text File  |  2000-03-17  |  2KB  |  50 lines

  1.  
  2. ;Patch11 Script
  3. [set]    '%%PACKAGE_NAME%%' 'STRING_1'
  4. [set]    '%%APPLICATION_NAME%%' 'STRING_2'
  5.  
  6. ; Read some relevent registry values into these tokens (to be used below)
  7. [readreg] '%%GAME_PATH%%' 'Software\Maxis\The Sims' 'SIMS_DATA'
  8. [readreg] '%%LANGUAGE%%'  'Software\Maxis\The Sims' 'SIMS_LANGUAGE'
  9. [readreg] '%%SKU%%'        'Software\Maxis\The Sims' 'SIMS_SKU'
  10. [10readreg] '%%VERSION%%'   'Software\Maxis\The Sims' 'Version'
  11.  
  12. ; setlanguage must be done before any set commands that refer to the Strings.iff
  13. ; English is the default if this command is left out
  14. [setlanguage]    '%%LANGUAGE%%'
  15.  
  16. ; Reset these tokens based on the newly set language
  17. [set]    '%%PACKAGE_NAME%%'     'STRING_1'
  18. [set]    '%%APPLICATION_NAME%%' 'STRING_2'
  19.  
  20. ;; This ends the preprocessing and starts making changes
  21. ;; This is where the application brings up the first dialog box.
  22. [begin]
  23.  
  24. ;; Check to ensure this is EXE 0 (SKU 1), Version 1
  25. [genericversionquitifnotequal] '%%VERSION%%' '1.0' '1.1' '1.01' '1.001' '1.003'
  26. [languageversionquitifnotequal] '%%SKU%%'    '2' '3'
  27.  
  28. ;; Check that the game is not running
  29. [writetest] '%%GAME_PATH%%\Sims.exe'
  30.  
  31. ;; Purge stuff that will be patched
  32. [deldircontents] '%%GAME_PATH%%\Downloads\UnSnacker\*.*'
  33. [deldircontents] '%%GAME_PATH%%\Downloads\Wallite\*.*'
  34. [del]          '%%GAME_PATH%%\GameData\Objects\CarPortal.iff'
  35.  
  36. ;; Patch SKU3/English install
  37. [patchsku3english] '%%SKU%%' '%%LANGUAGE%%' 'Software\Maxis\The Sims' 'SIMS_LANGUAGE'
  38.  
  39. ;; Patch the web version
  40. [patchweb] '%%GAME_PATH%%'
  41.  
  42. ;; Execute the patch
  43. [exec]     'patcha.exe "%%GAME_PATH%%" patch.rtp'
  44.  
  45. [copy] 'Res\UIText.iff'  '%%GAME_PATH%%\GameData\UIText.iff'
  46. [copy] 'Res\Credits.iff' '%%GAME_PATH%%\GameData\Credits.iff'
  47.  
  48. ;; Update version
  49. [writereg]       'Software\Maxis\The Sims' 'Version' '1.1'
  50.